<script setup>
import { ref, reactive, onMounted, nextTick} from "vue";
const props = defineProps({
  btnName: {
    type: String,
  }
})
const emits = defineEmits(['childClick'])
const childClick=()=>{
  let data={
    name:"迷人春",
    region:"xxx",
    type:"nan"
  }
  emits('childClick',data)
}
</script>

<template>
  <div id="contain">
    <el-button type="primary" size="default" @click="childClick">{{ props.btnName }}</el-button>
  </div>
</template>

<style lang="less" scoped>
</style>